@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="articleInfoForm">

            <input type="hidden" id="id" value="${article.id}">
            <input type="hidden" id="statusVal" value="${article.status}">
            <div id="contentVal" style="display: none;">${article.content}</div>

            <div class="row">
                <div class="col-sm-2"></div>
                <div class="col-sm-8">
                    <#input id="title" name="文章标题" value="${article.title}" />
                    <#input id="catalogSel" name="所在栏目分类" underline="true" readonly="readonly" hidden="catalogId" hiddenValue="${article.catalogId}" value="${article.catalogName}"
                            clickFun="ArticleInfoDlg.showCatalogSelectTree(); return false;"
                            style="background-color: #ffffff !important;"/>

                    <#input id="sort" name="排序序号" value="${article.sort}"/>

                    <#select id="status" name="是否启用">
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </#select>
                </div>
                <div class="col-sm-2"></div>
            </div>
            <!-- 这是所在栏目选择的下拉框 -->
            <div id="catalogContent" class="catalogContent"
                 style="display: none; position: absolute; z-index: 200;">
                <ul id="treeDemo" class="ztree tree-box" style="width: 249px !important;"></ul>
            </div>
            <div class="row">
                <div class="col-sm-2"></div>
                <div class="col-sm-8">
                    <div class="form-group">
                        <label class="control-label col-sm-3">文章内容</label>
                        <div class="col-sm-9">
                            <div id="editor" class="editorHeight-big">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-2"></div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="ArticleInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="ArticleInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script type="text/javascript" src="${ctxPath}/static/js/plugins/wangEditor/wangEditor.js"></script>
<script src="${ctxPath}/static/modular/cms/article/article_info.js"></script>
<script src="${ctxPath}/static/modular/cms/catalog/catalog_info.js"></script>
@}
